//
//  ImageBrowserViewController.m
//  ForYourBeauty
//
//  Created by Kelly xu on 2019/8/18.
//  Copyright © 2019 changrenTech. All rights reserved.
//

#import "ImageBrowserViewController.h"

@interface ImageBrowserViewController ()
@property(nonatomic,weak)IBOutlet UIImageView *imageView;
@end

@implementation ImageBrowserViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"图片预览";
    [self setNavTitleColor:[UIColor blackColor]];
    self.imageView.contentMode = UIViewContentModeScaleAspectFit;
    [self setNavLeftBtnForImage:[UIImage imageNamed:@"icon_fanhui_black"]];
}
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:YES];
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:self.imgUrl]];
}
-(void)leftbuttonPressed:(id)sender{
    [self dismissViewControllerAnimated:YES completion:nil];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
